﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace CommunityToolkitMvvmDemo.ViewModels
{
    partial class SerializeViewModel:ObservableObject      
    {
        [ObservableProperty]
        [property:JsonPropertyName("FullName")]
        string name;

        [ObservableProperty]
        int age;

        [ObservableProperty]
        [property:JsonIgnore] // 也可以加在 方法上，不序列化方法
        Guid guid;
    }
}
